package com.leyou.common.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName : UserInfo  //类名
 * @Description : 用户信息  //描述
 * @Author : qingfeng  //作者
 * @Date: 2020-09-21 17:53  //时间
 */
@Data
@NoArgsConstructor
public class UserInfo {
    private Long id;

    private String username;

    private List<String> role;

    public UserInfo(Long id, String username) {
        this.id = id;
        this.username = username;
    }

    public UserInfo(Long id, String username, List<String> role) {
        this.id = id;
        this.username = username;
        this.role = role;
    }
}
